import request from '@/utils/request'
/**
 *
 * @param {password,username} data
 * @returns token
 */
export const loginForm = (data) => {
  return request.post('/auth/login', data)
}
/**
 * token
 * @returns 用户信息
 */
export const getUser = () => {
  return request.get('/auth/currentUser')
}
